package com.ysd.qxgl.service;

import java.util.List;

import javax.annotation.Resource;

import com.ysd.qxgl.dao.IRolesDao;
import com.ysd.qxgl.dto.RolesDTO;
import com.ysd.qxgl.model.Roles;

import org.springframework.stereotype.Service;

@Service
public class RolesServiceImpl implements IRolesService {

    @Resource
    private IRolesDao rolesDao;

    @Override
    public List<Roles> findAllRoles() {
        return rolesDao.findAllRoles();
    }

    @Override
    public List<Roles> findRolesByPage(RolesDTO dto) {
        return rolesDao.findRolesByPage(dto);
    }

    @Override
    public int addRole(Roles roles) {
        return rolesDao.addRole(roles);
    }

    @Override
    public int editRole(Roles roles) {
        return rolesDao.editRole(roles);
    }

    @Override
    public int delRole(String id) {
        return rolesDao.delRole(id);
    }

    @Override
    public int getCount(RolesDTO dto) {
        return rolesDao.getCount(dto);
    }


    
}